package br.com.unitunes.model;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;

@Entity(name = "MUSICA")
@PrimaryKeyJoinColumn(name = "MUSICA_ID", referencedColumnName = "EXECUTAVEL_ID")
public class Musica extends Executavel {

    @ManyToOne
    @JoinColumn(name = "ALBUM_ID")
    protected Album album;    
    
	@Enumerated(EnumType.STRING)
	private CategoriaMusica categoria;	    
    
	public Album getAlbum() {
		return album;
	}

	public void setAlbum(Album album) {
		this.album = album;
	}

	public CategoriaMusica getCategoria() {
		return categoria;
	}

	public void setCategoria(CategoriaMusica categoria) {
		this.categoria = categoria;
	}	    
		
}


